package cn.com.ghy.android.widget;

import java.util.List;

import android.app.Application;
import cn.com.ghy.android.bean.LoginInfoBean;
import cn.com.ghy.android.bean.UnitInfoBean;
import cn.com.ghy.android.exception.DisposeException;

public class ComStaticApp extends Application {
	private LoginInfoBean loginInfo = null;
	private List<UnitInfoBean> listUnitInfo = null;
	private DisposeException disposeException = null;//dispose处理
	
	public LoginInfoBean getLoginInfo() {
		return loginInfo;
	}

	public void setLoginInfo(LoginInfoBean loginInfo) {
		this.loginInfo = loginInfo;
	}

	public List<UnitInfoBean> getListUnitInfo() {
		return listUnitInfo;
	}

	public void setListUnitInfo(List<UnitInfoBean> listUnitInfo) {
		this.listUnitInfo = listUnitInfo;
	}	
	
	@Override
	public void onCreate() {
		super.onCreate();
		
		disposeException = DisposeException.getInstance();
		disposeException.init(getApplicationContext());
	}
	
	public DisposeException getDisposeException() {
		return this.disposeException;
	}
}
